package com.warm.demo.log;

import cn.dev33.satoken.annotation.SaIgnore;
import com.warm.log.annotation.Log;
import org.noear.solon.annotation.Controller;
import org.noear.solon.annotation.Get;
import org.noear.solon.annotation.Mapping;
import org.noear.solon.validation.annotation.Valid;

import java.util.HashMap;
import java.util.Map;

/**
 * swagger最简用法
 *
 * @author warm
 */
@SaIgnore
@Mapping("/demo/log")
@Valid
@Controller
public class LogController {

    @Log
    @Get
    @Mapping("test")
    public Map test() {
        int a = 1 / 0;
        return new HashMap();
    }

}
